local more1__shi__mouding = fk.CreateSkill {
  name = "more1__shi__mouding",
}

Fk:loadTranslationTable{
  ["more1__shi__mouding"] = "谋定",
  [":more1__shi__mouding"] = "当你不因使用而失去牌时，你可以摸等量的牌。",

  ["$more1__shi__mouding1"] = "",
  ["$more1__shi__mouding2"] = "",
}

more1__shi__mouding:addEffect(fk.AfterCardsMove, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    if player:hasSkill(more1__shi__mouding.name) then
      for _, move in ipairs(data) do
        if not table.contains({fk.ReasonUse, fk.ReasonResponse}, move.moveReason) and move.from == player then
          return true
        end
      end
    end
  end,
  on_use = function(self, event, target, player, data)
    local cards = {}
    for _, move in ipairs(data) do
      if not table.contains({fk.ReasonUse, fk.ReasonResponse}, move.moveReason) and move.from == player then
        for _, info in ipairs(move.moveInfo) do
          table.insertIfNeed(cards, Fk:getCardById(info.cardId))
        end
      end
    end
    if #cards > 0 then
      player:drawCards(#cards, more1__shi__mouding.name)
    end

  end,
})















return more1__shi__mouding
